ForgeEvents.onEvent("net.minecraftforge.event.entity.player.PlayerInteractEvent$LeftClickBlock",event=>{
    global.PlayerInteractEvent$LeftClickBlock(event)
})
ForgeEvents.onEvent("net.minecraftforge.event.entity.player.PlayerInteractEvent$RightClickBlock",event=>{
    global.PlayerInteractEvent$RightClickBlock(event)
})

global.PlayerInteractEvent$LeftClickBlock = function(/**@type {Internal.PlayerInteractEvent$LeftClickBlock}*/event){
    if (event.level.dimension == "eou:test") {
        // event.setCanceled(true)
    }
}
global.PlayerInteractEvent$RightClickBlock = function(/**@type {Internal.PlayerInteractEvent$RightClickBlock}*/event){
    if (event.level.dimension == "eou:test") {
        // event.setCanceled(true)
    }
}
//event.level.dimension == "eou:test"：核心判断条件，检查玩家当前所在的维度是否为自定义维度 "eou:test"（通常是模组添加的特殊维度）。只有在该特定维度中，后续逻辑才会生效（目前仅为注释状态）。